package gradation.transformation;

import core.ConstantValue;
import gradation.GrayScaleTransformation;

public class GrayInverseTransformation extends GrayScaleTransformation {

	@Override
	public int[] processPixel(int[] pixel, int x, int y) {

		for (int i = 0; i < pixel.length; i++) {
			pixel[i] = ConstantValue.SMALE_MAX_VALUE - pixel[i];
		}

		return pixel;
	}

}
